<?php
require 'vendor/autoload.php';
require 'Service/ApiService.php';
require 'Service/RSAService.php';

$result = json_decode(file_get_contents('php://input'), true);
var_dump($result);
$api = new ApiService();
$config = $api->config;

$verfiyStatus = $api->verfiySign($result, $config['platform_public_key'], $result['sign'], $result['sign_type']);
if ($verfiyStatus) {
    //处理自有业务
    echo 'SUCCESS';
}